package com.example.administrator.idocment.tooltime;


import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by Administrator on 2017/2/8 0008.
 */
public class TimeParseImp implements ITimeParse
{
    SimpleDateFormat simleformat;
    Date d1;

    public TimeParseImp(String format)
    {
        simleformat=new SimpleDateFormat(format);
        d1=new Date();
    }


    @Override
    public String paseTimer(long longTime)
    {
        //+16*60*60*1000
        d1.setTime(longTime);
        String timers=simleformat.format(d1);

        return timers;
    }



}
